package com.mbds.utils;

import java.util.TimerTask;

import com.mbds.accelerometer.db.SensorDB;

/**
 * Task wich have to make action on the db
 *
 */
public abstract class Abs_Task  extends TimerTask{
	protected static SensorDB db;
	protected boolean cancel;
	
	public Abs_Task() {
		db = SensorDB.getInstance();
		cancel = false;
	}
	
	
	abstract public int getDelay();


	public boolean isCancel() {
		return cancel;
	}


	public void setCancel(boolean cancel) {
		this.cancel = cancel;
	}
	
}
